Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 2 - Control Manager Reference / Control Manager Resources


The Control Resource

CHANGED WITH THE APPEARANCE MANAGER

You can use a control ('CNTL') resource to define a standard control; many new standard controls have been added with the Appearance Manager. All control resources must have resource ID numbers greater than 127. Use GetNewControl to create a control defined in a control resource. The Control Manager uses the information you specify to create a control structure in memory. Figure 2-1 shows the structure of this resource.

Figure 2-1 Structure of a compiled control ('CNTL') resource

The compiled version of a control resource contains the following elements:

Note
The titles of all Appearance-compliant standard system controls appear in the system font. You should generally use the system font or small system font in your controls; see Mac OS 8 Human Interface Guidelines for more details.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998